﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace AEFunction.UI
{
    public partial class frmCalcFeatureCounts : Form
    {
        public string FileSource = "";
        public string resultPaht = "";
        public frmCalcFeatureCounts()
        {
            InitializeComponent();
        }

        private void btnBrowse_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog outputPathBrowseDlg = new FolderBrowserDialog();
            if (outputPathBrowseDlg.ShowDialog() == DialogResult.OK)
            {
                tilesSourcePath.Text = outputPathBrowseDlg.SelectedPath;
                FileSource = tilesSourcePath.Text;
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SaveFileDialog sfd = new SaveFileDialog();
            sfd.Filter = "文本文件|*.txt";
            if (sfd.ShowDialog() != DialogResult.OK)
                return;
            txtOutputPath.Text = sfd.FileName;
            resultPaht = txtOutputPath.Text;

        }

        private void btnExport_Click(object sender, EventArgs e)
        {
            FileSource = tilesSourcePath.Text;
            resultPaht = txtOutputPath.Text;
            this.DialogResult = DialogResult.OK;
        }
    }
}
